$(document).ready(function () {
    var ue = null;
    $("#editDetail").click(function(){
//        window.UEDITOR_CONFIG.initialFrameWidth = 640;
        window.UEDITOR_CONFIG.initialFrameHeight = 455;
        ue = UE.getEditor('detailInfo');
        $(".bgbox,.editbox").css("display","block");
    });
    $("#btnSaveContent").on('click', function(){
        var content = ue.getContent();
        $("#detailInfo").val(content);
        $("#richContent").html(content);
        $(".bgbox, .editbox").hide();
    });
});